require 'httparty'

class CurrencyWebservice

  include HTTParty

  def get()
    response = HTTParty.get('http://webservices.bermilabs.com/exchange/eur/chf')
    if response.success?
      response
    else
      raise response.response
    end
  end
end